import request from '@/config/axios'

export interface ClueTransLogVO {
	id : number
	ruleId : number
	accountId : number
	clueTotal : number
	transTotal : number
	lastQueryTime : Date
	nextQueryTime : Date
}

// 查询规则执行记录列表
export const getClueTransLogPage = async (params) => {
	return await request.get({ url: `/crm/robot-clue-trans-log/page`, params })
}

// 查询规则执行记录详情
export const getClueTransLog = async (id : number) => {
	return await request.get({ url: `/crm/robot-clue-trans-log/get?id=` + id })
}

// 删除规则执行记录
export const deleteClueTransLog = async (id : number) => {
	return await request.delete({ url: `/crm/robot-clue-trans-log/delete?id=` + id })
}